/* $Id: ServiceReqDAO.java 
 * Copyright (C) 2011, TRAKHEES
 *  
 * Revision History
 *
 * Date  			Author 		    	Remarks
 * ---------------------------------------------------------------------------------
 *
 */
package ae.pcfc.etks.online.common.dao;

import java.util.List;

import ae.pcfc.etks.online.common.domain.ServiceReq;

public interface ServiceReqDAO {
	
	/**
	 * addServiceReq
	 * Method to add the service registration request to the database
	 * @param serviceReq
	 * void
	 */
	public void addServiceReq(ServiceReq serviceReq);
	
	/**
	 * findServiceReqByApplicationId
	 * Method to find the servce requests by application id
	 * @param applicationId
	 * @return
	 * List<ServiceReq>
	 */
	public List<ServiceReq> findServiceReqByApplicationId(String applicationId);
	
	/**
	 * findServiceReqByUserAndServiceId
	 * Method to find the serivce request domain object registered for an user(userid) and service(service id) 
	 * @param userId
	 * @param serviceId
	 * @return
	 * ServiceReq
	 */
	public ServiceReq findServiceReqByUserAndServiceId(Long userId, Long serviceId);
}
